class ResourceRequest {
  /// 1.帖子；2.评论
  int? resourceType;
  int? resourceId;

  ResourceRequest({this.resourceType, this.resourceId});

  factory ResourceRequest.fromJson(Map<String, dynamic> json) {
    return ResourceRequest(
      resourceType: json['resourceType'] as int?,
      resourceId: json['resourceId'] as int?,
    );
  }

  Map<String, dynamic> toJson() => {
        'resourceType': resourceType,
        'resourceId': resourceId,
      };
}
